home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Games for Windows (Nodtronics) / Over 1000 Games for Windows.iso / STRATEGY / CSOLVE / README.TX_ / README.TX
Encoding:
Text File  |  1996-04-19  |  12.2 KB  |  257 lines

  1. CRYPTOSOLVE VERSION 1.0
  2. Copyright 1996 James A. Parsly
  3.  
  4. CRYPTOSOLVE is a WINDOWS based cryptogram solving utility. At its
  5. most basic level it allows you to type in a cryptogram and handles
  6. the chore of letter substitution for you. However, the real point
  7. of the program is the underlying expert system that provides hints
  8. and can even make a stab at automatic solution.
  9. --------------------------------------------------------------------
  10. SYSTEM REQUIREMENTS
  11.  
  12. This program requires Microsoft Windows
  13.  
  14. If you plan to use the Hints at all, I recommend at least a
  15. 486-66. A Pentium is even better.
  16. --------------------------------------------------------------------
  17.  
  18. INSTALLATION:
  19.  
  20. If you downloaded CRYPTOSOLVE, it probably came in the form of 
  21. a .ZIP file, CSOLVE.ZIP. Use PKUNZIP to Un-ZIP the files onto
  22. a floppy disk. Get into WINDOWS and from the Program Manager
  23. menu select FILE and then RUN.  In the Command Line box enter
  24. A:\SETUP or B:\SETUP and then click OK. This should install
  25. CRYPTOSOLVE and create a group containing the CRYPTOSOLVE icon.
  26.  
  27. FILE LIST:
  28.  
  29. A complete installation of CRYPTOSOLVE includes the following
  30. files:
  31.  
  32. CSOLVE.EXE           
  33. CSOLVE.INI  
  34. VBRUN300.DLL    Required for Visual Basic. Goes in WINDOWS/SYSTEM
  35. THREED.VBX      Required for Visual Basic. Goes in WINDOWS/SYSTEM
  36. PATT.DAT        Pattern database
  37. PATT2.DAT       Rule database
  38. WORDLIST.*      Word counts for various word lengths
  39. README.TXT      This file
  40. REGISTER.TXT    Registration form
  41.  
  42. This is the complete version of CRYPTOSOLVE and is not crippled in
  43. any way.
  44.  
  45. ---------------------------------------------------------------------
  46. REGISTRATION
  47.  
  48. It costs $10 US Dollars to register.  This gives you the right to
  49. complain and make suggestions.  See REGISTER.TXT
  50.  
  51. ---------------------------------------------------------------------
  52.  
  53. How CRYPTOSOLVE works (and why it sometimes doesn't)
  54.  
  55. CRYPTOSOLVE's hint system is based on patterns and rules.  It uses
  56. the patterns and rules to identify individual words (or author names).
  57. Each pattern or rule maps to a particular word, so CRYPTOSOLVE cannot
  58. directly identify any word that doesn't already have a pattern or
  59. rule in the database.  To fill in "unknown" words the letters must
  60. be cross-referenced in "known" words.
  61.  
  62. This means that a cryptogram containing a large number of "unknown"
  63. words will be difficult for CRYPTOSOLVE to solve.  Someone suggested
  64. that I type in part of Jabberwocky (a nonsense poem: "TWAS BRILLIG 
  65. AND THE SLITHEY TOVES....") and of course the hint system was
  66. pretty much a complete failure.
  67.  
  68. When you start a new puzzle and don't know any of the solution yet,
  69. there are often many candidates for each word in the puzzle.
  70. CRYPTOSOLVE ranks the candidates based on historical frequency of
  71. occurrance. Suppose the puzzle contained the word "XABZZQ". Two
  72. words that would fit, all other things being equal, are "JOHNNY" and
  73. "REALLY".  CRYPTOSOLVE knows that REALLY is about 6 times as likely
  74. to occur as JOHNNY and so the autosolver is more likely to come up
  75. with X=R than it is to come up with X=J.  If the X=R is wrong and
  76. X=J is right, then the autosolver will fail.
  77.  
  78. I have been training the expert system for about 6 years (1
  79. cryptogram per day) and there are over 8000 rules in the system.
  80. The cryptograms I have been using are quotations, so the rules
  81. reflect word usage in ordinary speech and writing.  
  82.  
  83. Cryptograms that are purposely designed to be difficult by use
  84. of uncommon words are going to give the autosolver problems.
  85.  
  86. Given all that here is how you use the CRYPTOSOLVE hint system:
  87.  
  88. ---------------------------------------------------------------------
  89.  
  90. SOLVING A PUZZLE USING THE HINTS SYSTEM
  91.  
  92. If you are given a starting letter, click the letter tile 
  93. corresponding to the puzzle letter and then type the solution letter.
  94.  
  95. Bring up the HINTS page by clicking the HINTS button.
  96.  
  97. Search for PATTERNS by clicking the PATTERNS button.  PATTERNS are
  98. word or author names that can be recognized because they contain
  99. patterns of repeated letters.  A common pattern would be WXYWZX
  100. which usually is the word PEOPLE.  If any patterns are found a
  101. list will appear. You can single click a candidate to see how it
  102. looks in the puzzle. If a candidate looks good to you, either
  103. double click the candidate or hit the accept button.  
  104.  
  105. If you find acceptable patterns, then try the RULES button
  106. to see if there are any exact matches in the RULES database.
  107. RULES will not work if there are no known letters. Actually you
  108. need to have enough known letters to match a rule in the rule
  109. database, so you usually need more than one known letter.
  110.    
  111. A rule tells CRYPTOSOLVE how to infer unknown letters in a word
  112. based on known letters. For example, if you have the puzzle word
  113. "XYZX" and you know that Y=H and Z=A, then the rule "_HA_=THAT"
  114. tells you that X=T. RULES will not work unless you know one or
  115. more letters in the puzzle, and even if you do there still may be
  116. no matches with the DATABASE.  If matches are found, a list will
  117. appear showing candidates which you can try out and accept by 
  118. clicking and doubleclicking, respectively.  
  119.  
  120. The next step is to try for a statistical solution using the
  121. AUTOSOLVE method.  This works by examining multiple puzzle words.
  122. For each puzzle word examined, all possible solution words from
  123. the rule database are found.  Some candidates are eliminated by
  124. looking at what would happen in cross-referenced words (for example
  125. if the solution would create a cross-referenced word that didn't
  126. have any vowels in it).  Remaining candidates are assigned weights
  127. based on historical frequency of occurrance and on how closely the
  128. rule that produced the candidate was met (Buzz word: fuzzy logic).  
  129. The candidate is then broken down into letters and statistics are
  130. kept on the total weight counts for all possible puzzle letter/
  131. solution letter pairs.  When all of the words have been factored in,
  132. letters that get 80% or more of the total weight for a given
  133. puzzle letter are incorporated into the solution.
  134.  
  135. AUTOSOLVE can then perform another iteration taking into account
  136. any new letters in the solution. You keep running iterations until
  137. no more progress is being made.  Rather than proceed automatically
  138. to a new iteration, CRYPTOSOLVE requires you to hit the GO button.
  139. This gives you a chance to SET or EXCLUDE letters before proceeding.
  140. The SET box allows you to enter a puzzle letter/solution letter
  141. pair that you have figured out. The EXCLUDE box is used to inform
  142. CRYPTOSOLVE that a puzzle letter/solution letter is not possible.
  143. This is useful when the autosolver assigns a letter based on a
  144. high probability that is nevertheless incorrect.  You must exclude
  145. the puzzle letter/solution letter pairing to override the
  146. probability and allow assignment of a different letter.
  147.  
  148. The PATTERNS-->RULES-->AUTOSOLVE method doesn't usually require
  149. much input from you, except to click the buttons. I was curious to
  150. see how well the program would do on its own, so I bought a puzzle
  151. book and tried out 40 cryptograms.  Using just the 3 steps,
  152. CRYPTOSOLVE was able to solve 25 out of the 40. I considered a
  153. puzzle solved if I could tell what the solution was, even if one or
  154. two letters weren't filled in. (This happens where there are 2 or
  155. more candidates for a letter and none have enough weight to be
  156. included in the solution; for example you can't decide if _E is
  157. WE, ME, BE, etc. if there are no cross-referenced words to factor
  158. into the decision.)  It actually did better on the first puzzles,
  159. solving 23 out of 30, but the last 10 were more difficult puzzles
  160. that didn't use common words.  On its usual diet of quotations
  161. which are not purposely designed to be difficult, I am sure 
  162. CRYPTOSOLVE does at least as well as the 23/30 figure.
  163.  
  164. I was actually able to solve the remainder of the puzzles (except for
  165. the 40th "CHALLENGER" puzzle which turned out to be mostly
  166. unfamiliar words), just not automatically. How? See below.
  167.  
  168. So what do you do if the AUTOSOLVE method doesn't work? This is where
  169. you come in.  The POSSIBILITIES method allows you to doubleclick a
  170. puzzle word and look at candidates, sorted by probability.  
  171. Once again you are presented with a list and you can single click
  172. a candidate to see how it looks in the puzzle. If you like a
  173. candidate, double click it (or hit the ACCEPT button).  You can
  174. then go back to RULES or AUTOSOLVE and see what you get.
  175.  
  176. The other way that you interact with the program is by entering
  177. new rules and patterns.  As you work puzzles you will come across
  178. new words and author names that contain patterns that will be
  179. recognizable in future puzzles. I usually want at least two
  180. sets of repeated letters before I consider a pattern to be
  181. unique enough to be included in the PATTERN database.  This is 
  182. entirely up to you. Similarly, as you look at partial solutions
  183. you will see opportunities for new inference rules.  The hint
  184. pages all have a ADD NEW RULES button that pops up a form
  185. for entering RULES and PATTERNS.  This is your chance to make
  186. the program smarter, to be the expert behind the expert system,
  187. so USE IT!
  188.  
  189. Patterns are just words and author names. If you think that the name
  190. RONALD REAGAN has enough pattern to be identified in the future, RONALD REAGAN 
  191. is what you enter. You can look at the pattern database. It is stored
  192. as a standard text file called PATT.DAT.
  193.  
  194. Rules are a bit more complicated. There are two distinct formats. The
  195. first type of rule is used when the known letters in a word allow you 
  196. to infer the unknown letters. The left-hand side of the rule shows 
  197. the letters that must be known and uses the underscore character "_"
  198. in positions that are unknown.  The rule then has an equal sign "=" 
  199. and a right-hand side which must be just like the left-hand side, except
  200. that the "_" characters are replaced by the correct letters.  Examples
  201. of this type of rule:
  202.  
  203. _HA_=THAT
  204. CO__ITT__=COMMITTEE
  205. V_C__M=VACUUM
  206.  
  207. The second format of rule is used when there is only one unknown
  208. letter left in a word, but there are multiple letters that would fit.  
  209. The left-hand side of this type of rule gives the known letters and
  210. an "_" character in the position where the unknown letter will go.
  211. The rule then has a "*" character followed by all of the possible
  212. letters. Examples of this type of rule:
  213.  
  214. _F*IO
  215. GOA_*DLT
  216.  
  217. If I ever write another version of CRYPTOSOLVE, I expect that I will
  218. include some additional rule types.  One definite possibility is a rule
  219. type for word endings (*I_G=*ING would be an example).
  220.  
  221. You can look at the RULE database. It is stored in the text file
  222. PATT2.DAT
  223. ------------------------------------------------------------------------------------------
  224. WORD COUNTS
  225.  
  226. When you have completely solved a puzzle, you should click the
  227. WORD COUNT button so that the program will update the frequency of 
  228. occurrances.  This will automatically happen if you try to exit the 
  229. program after solving a puzzle.  You will see a list of all of the 
  230. words in the puzzle. If NEW WORD appears beside a word, this 
  231. word is being seen for the first time.  It is important that you
  232. create RULES or PATTERNS for any new words. AUTOSOLVE gets candidate 
  233. words using the rule database, so if there is no rule for a word, 
  234. AUTOSOLVE will not consider it. The WORD COUNT feature was the last 
  235. major feature added to the original DOS program, so the word counts 
  236. are still a bit low.
  237.  
  238. ------------------------------------------------------------------------------------------
  239. If Wishes were Fishes......
  240.  
  241. I wish that the program were faster. The original DOS version 
  242. which was written in compiled QuickBasic 4.0 is MUCH faster than 
  243. the VISUAL BASIC for Windows code. Didn't have a very good user
  244. user interface, but it did the job.  Of course the machines keep 
  245. getting faster and I hear rumors about there being REAL compiled
  246. code (as opposed to p-code) in a future version of Visual Basic, 
  247. so maybe time will solve all of my problems. Either that or I get
  248. a C Compiler and start writing DLL's (or maybe that new POWERBASIC 
  249. compiler).
  250.  
  251. ------------------------------------------------------------------------------------------
  252. The ABOUT Screen
  253.  
  254. View the ABOUT screen and be amazed!  I am rather proud of it.
  255.  
  256. ------------------------------------------------------------------------------------------
  257.